package com.tedu.ds.workRecord.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class WorkRecordQuery {

    @ApiModelProperty(value = "工作记录id", example = "1")
    private Integer id;

    @ApiModelProperty(value = "员工id", example = "1", required = true)
    private Long empId;

    @ApiModelProperty(value = "订单id", example = "1")
    private Long orderId;

    @ApiModelProperty(value = "工作日期", example = "[\"2023-10-24\", \"2023-10-25\"]")
    private Object workDate;

    @ApiModelProperty(value = "工作时间", example = "[\"09:00-17:00\", \"09:00-12:00\"]")
    private Object workHours;

    @ApiModelProperty(value = "工作内容", example = "[\"完成任务A\", \"完成任务B\"]")
    private Object workContent;

    @ApiModelProperty(value = "工作结果", example = "[\"任务A完成\", \"任务B完成\"]")
    private Object workOutcome;

    @ApiModelProperty(value = "工作进度", example = "50")
    private Integer workProgress;

    @ApiModelProperty(value = "工作总量", example = "100")
    private Integer workTotal;

    @ApiModelProperty(value = "创建时间", example = "2023-10-24")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    @ApiModelProperty(value = "结束时间", example = "2023-10-24T20:00:00")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    @ApiModelProperty(value = "备注", example = "任务A遇到一些技术难题，已解决")
    private String remark;
}
